#pragma once
#include <opencv2/opencv.hpp>
#include <vector>

// 将BGR Mat编码为JPEG字节流
enum class JPEGQuality { LOW = 50, MEDIUM = 80, HIGH = 95 };
std::vector<uint8_t> matToJpeg(const cv::Mat& img, JPEGQuality quality = JPEGQuality::MEDIUM);
